<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

Route::get('test','api/test/index');
Route::put('test/:id','api/test/edit');//修改
Route::resource('test','api/test');//修改

//栏目
Route::get('api/:ver/cat','api/:ver.cat/read');
//区域
Route::get('api/:ver/address','api/:ver.address/adrForm');
//首页文章
Route::get('api/:ver/index','api/:ver.index/index');
//技术约会
Route::resource('api/:ver/product','api/:ver.product');
//技术排行
Route::get('api/:ver/rank','api/:ver.rank/index');
//版本升级
Route::get('api/:ver/init','api/:ver.index/init');
//生成账号
Route::post('api/:ver/generate','api/:ver.login/save');
//用户登陆
Route::post('api/:ver/login','api/:ver.login/login');
//用户中心
Route::resource('api/:ver/user','api/:ver.user');
//头像上传
Route::post('api/:ver/image','api/:ver.image/save');
//门店
Route::resource('api/:ver/store','api/:ver.store');
//门店排行
Route::get('api/:ver/rankStore','api/:ver.rank/storeIndex');